<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateCompanyServiceTypeTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('company_service_type', function (Blueprint $table) {
            $table->bigInteger('company_id')->index()->comment('公司ID');
            $table->bigInteger('type_id')->comment('业务类型ID');
        });
        \DB::statement("ALTER TABLE `company_service_type` comment '公司业务类型表'");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('company_service_type');
    }
}
